package org.ymjava.medical.db.AllPackage.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 角色表
 * 
 * @author zhy
 * @email ${email}
 * @date 2020-04-03 15:53:44
 */
@Table(name = "sys_role")
public class SysRole implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //角色id
    @Id
    private Integer rid;
	
	    //角色名，用于显示
    @Column(name = "rname")
    private String rname;
	
	    //角色描述
    @Column(name = "rdesc")
    private String rdesc;
	
	    //角色值，用于权限判断
    @Column(name = "rval")
    private String rval;
	
	    //创建时间
    @Column(name = "created")
    private Date created;
	
	    //修改时间
    @Column(name = "updated")
    private Date updated;
	
	    //
    @Column(name = "deleted")
    private Integer deleted;
	

	/**
	 * 设置：角色id
	 */
	public void setRid(Integer rid) {
		this.rid = rid;
	}
	/**
	 * 获取：角色id
	 */
	public Integer getRid() {
		return rid;
	}
	/**
	 * 设置：角色名，用于显示
	 */
	public void setRname(String rname) {
		this.rname = rname;
	}
	/**
	 * 获取：角色名，用于显示
	 */
	public String getRname() {
		return rname;
	}
	/**
	 * 设置：角色描述
	 */
	public void setRdesc(String rdesc) {
		this.rdesc = rdesc;
	}
	/**
	 * 获取：角色描述
	 */
	public String getRdesc() {
		return rdesc;
	}
	/**
	 * 设置：角色值，用于权限判断
	 */
	public void setRval(String rval) {
		this.rval = rval;
	}
	/**
	 * 获取：角色值，用于权限判断
	 */
	public String getRval() {
		return rval;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreated(Date created) {
		this.created = created;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreated() {
		return created;
	}
	/**
	 * 设置：修改时间
	 */
	public void setUpdated(Date updated) {
		this.updated = updated;
	}
	/**
	 * 获取：修改时间
	 */
	public Date getUpdated() {
		return updated;
	}
	/**
	 * 设置：
	 */
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	/**
	 * 获取：
	 */
	public Integer getDeleted() {
		return deleted;
	}
}
